package com.lh.lock;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class MyThreadPool {

    private ThreadPoolExecutor  executor;

    public ThreadPoolExecutor getExecutor() {

        return new ThreadPoolExecutor(3
                ,5
                ,1
                , TimeUnit.SECONDS,new ArrayBlockingQueue<>(10));

    }
}
